package com.arpa.oms.mapper;

import com.arpa.oms.domain.dto.OmsOutboundDTO;
import com.arpa.oms.domain.entity.OmsOutbound;
import com.arpa.oms.domain.vo.OmsOutboundVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * OMS出库单 Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2020-11-07
 */
public interface OmsOutboundMapper extends BaseMapper<OmsOutbound> {

    /**
     * 查询列表
     * @param omsOutboundDTO
     * @return
     */
    List<OmsOutboundVO> queryList(OmsOutboundDTO omsOutboundDTO);

    /**
     * 查询合计,包含总数
     * @param omsOutboundDTO
     * @return
     */
    OmsOutboundVO queryListSum(OmsOutboundDTO omsOutboundDTO);

    List<Map<String, Object>> outboundCount(String shipmentCode, List<String> warehouseCodes);
}
